package org.jrpc.core.factory;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * Created by chenyuncong on 2019/4/22.
 */
//@Component
@Deprecated
public class InstantiationTracingBeanPostProcessor implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
    //需要执行的逻辑代码，当spring容器初始化完成后就会执行该方法。
        System.out.println(event);
    }
}